//
//  YCImageCollectionViewCell.m
//  YCSchool
//
//  Created by gmall on 16/5/12.
//  Copyright © 2016年 yanglinxia. All rights reserved.
//

#import "YCImageCollectionViewCell.h"

@implementation YCImageCollectionViewCell

@synthesize imageView = _imageView;
- (instancetype)initWithFrame:(CGRect)frame
{
    if(self = [super initWithFrame:frame])
    {
        _imageView = [[UIImageView alloc] init];
        _imageView.contentMode = UIViewContentModeScaleAspectFill;
        _imageView.clipsToBounds = YES;
        [self.contentView addSubview:_imageView];
        
        [_imageView mas_makeConstraints:^(MASConstraintMaker *make) {
            make.left.right.and.top.bottom.equalTo(self.contentView);
        }];
    }
    return self;
}

@end
